#!/usr/bin/php
<?php

function main($argc, & $argv)
{
    /*
     * $s = file_get_contents("http://3.3.3.9");
     * print_r($http_response_header);
     * echo $s, PHP_EOL;
     */

    $fp = fopen("http://3.3.3.9", "r");
    print_r(stream_get_meta_data($fp));

    echo fread($fp, 1024), PHP_EOL;

    fclose($fp);

    return 0;
}

exit(main($argc, $argv));

